Optimal. Leaf size=56 \[ \frac {29 x}{576}+\frac {35 \text {ArcTan}\left (\frac {\sin (c+d x)}{3+\cos (c+d x)}\right )}{288 d}-\frac {25 \tan (c+d x)}{48 d (3+5 \sec (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3870, 4004,
3916, 2736} \begin {gather*} \frac {35 \text {ArcTan}\left (\frac {\sin (c+d x)}{\cos (c+d x)+3}\right )}{288 d}-\frac {25 \tan (c+d x)}{48 d (5 \sec (c+d x)+3)}+\frac {29 x}{576} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2736
Rule 3870
Rule 3916
Rule 4004
Rubi steps
\begin {align*} \int \frac {1}{(3+5 \sec (c+d x))^2} \, dx &=-\frac {25 \tan (c+d x)}{48 d (3+5 \sec (c+d x))}+\frac {1}{48} \int \frac {16+15 \sec (c+d x)}{3+5 \sec (c+d x)} \, dx\\ &=\frac {x}{9}-\frac {25 \tan (c+d x)}{48 d (3+5 \sec (c+d x))}-\frac {35}{144} \int \frac {\sec (c+d x)}{3+5 \sec (c+d x)} \, dx\\ &=\frac {x}{9}-\frac {25 \tan (c+d x)}{48 d (3+5 \sec (c+d x))}-\frac {7}{144} \int \frac {1}{1+\frac {3}{5} \cos (c+d x)} \, dx\\ &=\frac {29 x}{576}+\frac {35 \tan ^{-1}\left (\frac {\sin (c+d x)}{3+\cos (c+d x)}\right )}{288 d}-\frac {25 \tan (c+d x)}{48 d (3+5 \sec (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 73, normalized size = 1.30 \begin {gather*} \frac {160 (c+d x)+96 (c+d x) \cos (c+d x)+35 \text {ArcTan}\left (2 \cot \left (\frac {1}{2} (c+d x)\right )\right ) (5+3 \cos (c+d x))-150 \sin (c+d x)}{288 d (5+3 \cos (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 58, normalized size = 1.04
method | result | size |
derivativedivides | \(\frac {\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{9}-\frac {25 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{48 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+4\right )}-\frac {35 \arctan \left (\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}\right )}{288}}{d}\) | \(58\) |
default | \(\frac {\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{9}-\frac {25 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{48 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+4\right )}-\frac {35 \arctan \left (\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2}\right )}{288}}{d}\) | \(58\) |
risch | \(\frac {x}{9}-\frac {25 i \left (5 \,{\mathrm e}^{i \left (d x +c \right )}+3\right )}{72 d \left (3 \,{\mathrm e}^{2 i \left (d x +c \right )}+10 \,{\mathrm e}^{i \left (d x +c \right )}+3\right )}+\frac {35 i \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {1}{3}\right )}{576 d}-\frac {35 i \ln \left ({\mathrm e}^{i \left (d x +c \right )}+3\right )}{576 d}\) | \(86\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 88, normalized size = 1.57 \begin {gather*} -\frac {\frac {150 \, \sin \left (d x + c\right )}{{\left (\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 4\right )} {\left (\cos \left (d x + c\right ) + 1\right )}} - 64 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right ) + 35 \, \arctan \left (\frac {\sin \left (d x + c\right )}{2 \, {\left (\cos \left (d x + c\right ) + 1\right )}}\right )}{288 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.58, size = 73, normalized size = 1.30 \begin {gather*} \frac {192 \, d x \cos \left (d x + c\right ) + 320 \, d x + 35 \, {\left (3 \, \cos \left (d x + c\right ) + 5\right )} \arctan \left (\frac {5 \, \cos \left (d x + c\right ) + 3}{4 \, \sin \left (d x + c\right )}\right ) - 300 \, \sin \left (d x + c\right )}{576 \, {\left (3 \, d \cos \left (d x + c\right ) + 5 \, d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (5 \sec {\left (c + d x \right )} + 3\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 59, normalized size = 1.05 \begin {gather*} \frac {29 \, d x + 29 \, c - \frac {300 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 4} + 70 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 3}\right )}{576 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.86, size = 52, normalized size = 0.93 \begin {gather*} \frac {x}{9}-\frac {\frac {35\,\mathrm {atan}\left (\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}\right )}{288}+\frac {25\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{48\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+4\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________